<template>
	<div>
		<ul class="gonggao_ul">
			<li class="gonggao_li" v-for="(item,index) in list" :key="index">
				<div class="gonggao_top">
					<span>{{item.title}}</span>
					<span>{{item.created_at}}</span>
				</div>
				<div class="gonggao_bottom" v-html="count" >
				<!--<div class="gonggao_bottom"  >-->
					
					<!--{{item.description}}-->
					{{count}}
				</div>
			</li>
		</ul>

	</div>
</template>

<script>
	export default {
		data() {
			return {
				list: [], //公告
				count:''
			}
		},
		components: {},
		// 渲染之前
		created() {
			// get请求
			this.http.get("/api/notice/info")
				// 允许
				.then(res => {
					console.log(res)
					if(res.status_code == 200) {
						
						this.list = res.data;
						this.count = res.data[0].description;
					} else {
						this.$toast(res.message);
					}
				})
				
		},
		methods: {},
		mounted() {}
	};
</script>

<style scoped>
@import url("../../assets/css/ttcp/chongzhi.css");
	.gonggao_box{background-color:#F2F2F2;height: 100vh;}
	/* 超出内容 */
</style>